home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994…tember: Reference Library / Dev.CD Sep 94.toast / Periodicals / develop / develop Issue 11 / develop 11 code / The NetWork Project / Examples (For System Folder) / NetWork Tools / Startup < prev    next >
Encoding:
Text File  |  1992-07-15  |  4.9 KB  |  164 lines  |  [TEXT/MPS ]

  1. #    Startup for MPW shell. Minor modification for
  2. #    remote starting with NetWork
  3. #    Copyright © The NetWork Project, Heidelberg
  4. #    Copyright © G. Sawitzki, Heidelberg
  5. #
  6. #  based on:
  7. #    Startup - MPW Shell Startup File
  8. #
  9. #    Copyright Apple Computer, Inc. 1985-1988
  10. #    All Rights Reserved.
  11.  
  12. #    {Boot} - The boot disk.  (Predefined.)
  13.             Export Boot
  14.  
  15. #    {SystemFolder} - The directory that contains System & Finder.  (Predefined.)
  16.             Export SystemFolder
  17.  
  18. #    {ShellDirectory} - The directory that contains MPW Shell.  (Predefined.)
  19.             Export ShellDirectory
  20.  
  21. #    {Active} - The active (topmost) window.  (Predefined.)
  22.             Export Active
  23.  
  24. #    {Target} - The target (previously active) window.  (Predefined.)
  25.             Export Target
  26.  
  27. #    {Worksheet} - The name of the Worksheet window.  (Predefined.)
  28.             Export Worksheet
  29.  
  30. #    {Status} - The result of the last command executed.  (Predefined.)
  31.             Export Status
  32.  
  33. #    {User} - Automatically defined to the name the appears in the Chooser.
  34.             Export User
  35.  
  36. #    {MPW} - The volume or folder containing the Macintosh Programmer's Workshop.
  37. #            If you put the MPW Shell out on the desktop, redefine this variable
  38. #            to be {Boot}MPW:
  39.             Set MPW "{ShellDirectory}"
  40.             Export MPW
  41.             
  42. #    {Commands} - Directories to search for commands.
  43.             Set Commands ":,{MPW}Tools:,{MPW}Scripts:,{MPW}Applications:"
  44.             Export Commands
  45.  
  46. #    {AIncludes} - Directories to search for assembly language include files.            
  47.             Set AIncludes "{MPW}Interfaces:AIncludes:"
  48.             Export AIncludes
  49.             
  50. #    {Libraries} - Directory that contains shared libraries.         
  51.             Set Libraries "{MPW}Libraries:Libraries:"
  52.             Export Libraries
  53.             
  54. #    {CIncludes} - Directories to search for C include files.
  55.             Set CIncludes "{MPW}Interfaces:CIncludes:"
  56.             Export CIncludes
  57.  
  58. #    {CLibraries} - Directory that contains C libraries.         
  59.             Set CLibraries "{MPW}Libraries:CLibraries:"
  60.             Export CLibraries
  61.             
  62. #    {PInterfaces} - Directories to search for Pascal interface files.
  63.             Set PInterfaces "{MPW}Interfaces:PInterfaces:"
  64.             Export PInterfaces
  65.  
  66. #    {PLibraries} - Directory that contains Pascal libraries.        
  67.             Set PLibraries "{MPW}Libraries:PLibraries:"
  68.             Export PLibraries
  69.             
  70. #    {RIncludes} - Directory that contains Rez include files.
  71.             Set RIncludes "{MPW}Interfaces:RIncludes:"
  72.             Export RIncludes
  73.  
  74. #    {CaseSensitive} - If non-zero, pattern matching is case sensitive.
  75.             Set CaseSensitive 0
  76.             Export CaseSensitive
  77.  
  78. #    {SearchBackward} - If non-zero, search will go backwards.
  79.             Set SearchBackward 0
  80.             Export SearchBackward
  81.  
  82. #    {SearchWrap} - If non-zero, search will wrap.
  83.             Set SearchWrap 0
  84.             Export SearchWrap
  85.  
  86. #    {SearchType} - Specifies the default searching type.  (0/literal,
  87. #        1/word, 2/regular expression)
  88.             Set SearchType 0
  89.             Export SearchType
  90.  
  91. #    {Tab} - Default tab setting for new windows.
  92.             Set Tab 4
  93.             Export Tab
  94.  
  95. #    {Font} - Default Font for new windows.
  96.             Set Font Monaco
  97.             Export Font
  98.  
  99. #    {FontSize} - Default font size for new windows.
  100.             Set FontSize 9
  101.             Export FontSize
  102.  
  103. #    {AutoIndent} - If non-zero, auto indentation will be the default for
  104. #        new windows.
  105.             Set AutoIndent 1
  106.             Export AutoIndent
  107.  
  108. #    {WordSet} - Character set that defines words for searches and double-clicks.
  109.             Set WordSet 'a-zA-Z_0-9'
  110.             Export WordSet
  111.  
  112. #    {PrintOptions} - Options used by the Print Window and Print Selection menus.
  113.             Set PrintOptions '-h'
  114.             
  115. #    {Exit} - If non-zero, command files terminate after the first error.
  116.             Set Exit 1
  117.             Export Exit
  118.  
  119. #    {Echo} - If non-zero, commands are echoed before execution.
  120.             Set Echo 0
  121.             Export Echo
  122.  
  123. #    {Test} - If non-zero, tools and applications are not executed.
  124.             Set Test 0
  125.             Export Test
  126.  
  127. #    Commando Support
  128.              Export Windows
  129.              Export Aliases
  130.              Set Commando Commando
  131.             Export Commando
  132.  
  133. #    Aliases
  134.             Alias File Target
  135.  
  136.  
  137. #    The file UserStartup can be used to override definitions made in Startup,
  138. #    or to define additional variables, exports, and aliases.  UserStartup may
  139. #    also be used to define menu items, open windows, etc.  The file should be
  140. #    located in the directory containing the MPW Shell.
  141.  
  142.             Execute "{ShellDirectory}UserStartup"
  143.  
  144. #    Since UserStartup is distributed with MPW, you may want to have other
  145. #    startup files that will not be overwritten with a new release.
  146. #    Other personalized startup files may be named UserStartup•≈ - such as 
  147. #    "UserStartup•John" or "UserStartup•Tom"  (• is option-8).
  148. #    These files should be located in the directory containing the MPW Shell.
  149.  
  150.             For i in `(Files "{ShellDirectory}"UserStartup•≈ || Set Status 0) ≥ dev:null`
  151.             #################################################
  152.             #### Changed for remoteJob. we take a UserStartup script execute it,
  153.             #### and delete it if ok. You may want to improve this for your purposes.
  154.                     Execute "{i}" && delete -y "{i}" 
  155.             #################################################
  156.                     
  157.             End
  158.             Unset i
  159. #################################################
  160. #### Changed for remoteJob. Automatic save of all files.
  161. #### You may want to improve this for your purposes.
  162. save -a
  163. #################################################
  164. quit